<%@ page language="java"
	import="com.gy.sams.entity.*,com.gy.sams.dao.*,com.gy.sams.dao.impl.*"  
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	int flag=0;
	request.setCharacterEncoding("utf-8");
	String id=request.getParameter("gid");
	String a=request.getParameter("gscore");
	IScoreDao scoreDao=new ScoreDaoImpl();
	flag=scoreDao.updateScore(id,a);
	if(flag!=0){
		out.print("<script type='text/javascript'>alert('修改成功');location.replace('../tableScore.jsp')</script>");
	}
	else{
		out.print("<script type='text/javascript'>alert('修改失败');location.replace('../tableScore.jsp')</script>");
	}
%>